<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>欢迎使用中山市气象灾情系统</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>/resources/images/login.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>/resources/images/public.css">
			<script type="text/javascript">
				function checkNull(){
					var lgname=document.getElementById("lgname").value;
					var lgpwd=document.getElementById("lgpwd").value;
					if(""==lgname||""==lgpwd){
						alert("用户名或密码为空");
						return false;
					}
				}
			</script>
	</head>
	<BODY>
		<DIV id=div1>
		<form action="adminAction!isUser.action" method="post" onsubmit="javascript:checkNull();">
			<TABLE id=login height="100%" cellSpacing=0 cellPadding=0 width=800
				align=center>
				<TBODY>
					<TR id=main>
						<TD>
							<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%">
								<TBODY>
									<TR>
										<TD colSpan=4>
											&nbsp;
										</TD>
									</TR>
									<TR height=30>
										<TD width=380>
											&nbsp;
										</TD>
										<TD colspan="2">
											<span style="color:red">${message}</span>
											&nbsp;
										</TD>
										<TD>
											&nbsp;
										</TD>
									</TR>
									<TR height=40>
										<TD rowSpan=4>
											&nbsp;
										</TD>
										<TD>
											用户名：
										</TD>
										<TD>
											<INPUT class=textbox name="admin.lgname">
										</TD>
										<TD width=120>
											&nbsp;
										</TD>
									</TR>
									<TR height=40>
										<TD>
											密 码：
										</TD>
										<TD>
											<INPUT class=textbox type=password
												name="admin.lgpwd">
										</TD>
										<TD width=120>
											&nbsp;
										</TD>
									</TR>
									<%--              <TR height=40>--%>
									<%--                <TD>验证码：</TD>--%>
									<%--                <TD vAlign=center colSpan=2>--%>
									<%--                  <INPUT id=txtSN size=4 name=txtSN>--%>
									<%--                  &nbsp; <IMG src="登录.files/default.gif" border=0> <A id=LinkButton1 --%>
									<%--            href="#">不清楚，再来一张</A></TD>--%>
									<%--              </TR>--%>
									<TR height=40>
										<TD></TD>
										<TD align=right>
											<INPUT id=btnLogin type=submit value=" 登 录 " name=btnLogin>
										</TD>
										<TD width=120>
											&nbsp;
										</TD>
									</TR>
									<TR height=110>
										<TD colSpan=4>
											&nbsp;
										</TD>
									</TR>
								</TBODY>
							</TABLE>
						</TD>
					</TR>
					<TR id=root height=104>
						<TD>
							&nbsp;
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			</form>
		</DIV>
		<DIV id=div2 style="DISPLAY: none"></DIV>
		</CONTENTTEMPLATE>
	</BODY>
</html>
